﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MqttAnalyze.Data.Dal
{
    public interface IMqttDbDal
    {
        void OpenQuery();

        void CloseQuery();

        ISqlSugarClient GetClient();

        int QueryDataFromSql(string sql, SugarParameter[] parameters, out DataTable queryDt);

        int ExecuteSqlCommand(string sql, params SugarParameter[] parameters);
    }
}
